package org.openfans.domain;

import java.util.Date;

/**
 * 类说明：用户的一个feed，它<br>
 * 创建时间:2006-5-3<br>
 * 
 * @author 张俊<br>
 * @email:pesome@gmail.com<br>
 */
public class Feed extends PersistentObject {
	private int feedId;

	/**
	 * 提交这个feed的用户
	 */
	private Fans fans;

	private String title;

	private String feedUrl;

	private String webUrl;

	private String descn;
	
	private int subscribeCount;
	

	/**
	 * 记录一个feed最后一个item的日期，再读这个feed只会增加后面的item
	 */
	private Date lastDate;

	public Date getLastDate() {
		return lastDate;
	}

	public void setLastDate(Date lastDate) {
		this.lastDate = lastDate;
	}

	public int getFeedId() {
		return feedId;
	}

	public void setFeedId(int feedId) {
		this.feedId = feedId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFeedUrl() {
		return feedUrl;
	}

	public void setFeedUrl(String feedUrl) {
		this.feedUrl = feedUrl;
	}

	public Fans getFans() {
		return fans;
	}

	public void setFans(Fans fans) {
		this.fans = fans;
	}

	// public List getFeedItems() {
	// return feedItems;
	// }

	public String getDescn() {
		return descn;
	}

	public void setDescn(String descn) {
		this.descn = descn;
	}

	public String getWebUrl() {
		return webUrl;
	}

	public void setWebUrl(String webUrl) {
		this.webUrl = webUrl;
	}

	public int getSubscribeCount() {
		return subscribeCount;
	}

	public void setSubscribeCount(int subscribeCount) {
		this.subscribeCount = subscribeCount;
	}

	public void increaseSubscribeCount(int i) {
		this.subscribeCount+=i;
	}
}
